import pickle

output = "/home/young/Programs/Jepsen-Mongo-Txn/logs/oplogs.json"

def save_obj(obj, filepath):
    with open(filepath, "wb+") as f:
        pickle.dump(obj, f)

def load_obj(filepath):
    with open(filepath, "rb") as f:
        obj = pickle.load(f)
    return obj

if __name__ == '__main__':
    oplogs_by_shard = load_obj(output)

